<?php
/**
 * Areal Module-Controller type Resource
 *
 * @author Lukas Normantas
 */
class Areal_Acl_Resource implements Zend_Acl_Resource_Interface {

  /**
   * const DELIMITER - separates module from controller in acl config
   */
  const DELIMITER = ':';

  public function __construct($module_name, $controller_name)
  {
    $this->_id = $module_name . self::DELIMITER . $controller_name;
  }

  public function getResourceId()
  {
    return '' . $this->_id;  
  }
}